package com.scrcu.cloud.wechat.home.endpoint.customer.service.facadeimpl;

import com.scrcu.cloud.wechat.home.endpoint.common.model.RestResponse;
import com.scrcu.cloud.wechat.home.endpoint.customer.facade.RestFacade;
import com.scrcu.cloud.wechat.home.endpoint.customer.service.ICityService;
import com.scrcu.cloud.wechat.home.endpoint.customer.service.IOtherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.Map;

@Service
public class FacadeImpl implements RestFacade {

    @Autowired
    private ICityService iCityService;

    @Autowired
    private IOtherService iAtmService;

    @Override
    public RestResponse getByCityCountyId(Map<String, String> param) throws IOException {
        String city_id = param.get("city");
        String county_id = param.get("county");
        return iCityService.getByCity(city_id, county_id);
    }

}
